package br.com.bolaofutebolclube.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;

import framework.BaseObject;

@Entity
@Table(name="campeonatos")
public class Campeonato extends BaseObject{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@NotNull
	private String nome;

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Override
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		// TODO Auto-generated method stub
		return super.getId();
	}
	
	@Override
	@Column(name="created_at")
	public Date getCreatedAt() {
		// TODO Auto-generated method stub
		return super.getCreatedAt();
	}
	@Override
	@Column(name="updated_at")
	public Date getUpdatedAt() {
		// TODO Auto-generated method stub
		return super.getUpdatedAt();
	}
}
